entity mux3 is
	port (
		entrada0 : in bit_vector (31 downto 0);
		entrada1 : in bit_vector (31 downto 0);
		entrada2 : in bit_vector (31 downto 0);
		seletor : in bit_vector (1 downto 0);
		saida : out bit_vector (31 downto 0)
	);
end mux3;

architecture arc_mux3 of mux3 is

begin

	saida <= entrada0 when seletor = "00" else
			 entrada1 when seletor = "01" else
			 entrada2 when seletor = "10" else
			"00000000000000000000000000000000";
			
end arc_mux3;	
	
				